Fixed filesystem, added tests.

Cleaned up the filesystem for the repository, added testing functions and images.