Wow that sounds like a mess! Sorry to hear they put you through all that then fired you for something your manager said you could do thats ridiculous. I would be trying to find some way to get some help deal with it.