Adds some more functions
organized the code and added notes.md