Refactoring

Removing print statements that were used for debugging purposes.
Removing unused functions