Debugging tools added
Renames function to be more explicit
Names variable for clarity
Removed timestamp
Removes commented code