Some new stuff

Added some comments and a new function