Refactored write(task), cleaned up code, and added comments
Error checking, more comments, and cleaned up code
Added stringify()
Removed changeToString(task)