Added more documentation, revised some styles and deleted unused files.