Refactored some code (setupFileSystem() function, ...)
Experimented with plotting functionality.