Removed logging

Also clarified code formatting