Added documentation, cleaned up unused files