Adding some config functionality and starting on a README.

Also a gitignore.
Restructuring and adding documentation.
Removing legacy files and fixing documentation.