Removed makeimflat, either use Oris code or Johns code to make master flat
altered output varaible to match remaining functions
Replaced imflatten function with modularized code, along with any necessary functions it calls, removed old imflatten code