debugging code
Removed all implicit logging. Fixed gas issues and jump errors