Refining compiler code, use FileManager as backing store, improved tests