Updated comments
minor changes
changed debug outputs
debug output changes
changes in debug output
troubleshooting, seems to be working now