Added comments and other changes to write function
Merge branch 'master' of https://github.com/EJones85/Tikpy