Cleaned up the codebase

Cleaned up the codebase, removed not used files, added the server
component and added some documentation in the readme.md