Updated doc-strings and changed the script attribute to function
Merge branch 'CleanUp' of https://github.com/timidger/Mao into CleanUp