get base functions working
fix modify method from deleting file upon saving. Rtrim is not working now though...