Clean up source code. Remove console.log statements and unused functions