Added function comments, changed "list" type to "array".
Merge pull request #10 from mvankeulen94/update

Added function comments, changed "list" type to "array".