Refactored everything to use new filesystem class. Relates to #28.