Debugging

Finished line by line debugging and added echo commands to make output
more friendly.

Left bugs commented. Researching resolution