Wrote more of the filemanager object and fixed some stuff.