Added markdown file, cleaned up some code