renaming api stuff
refactored phylesystem api wrapper to its own file