cleaned up events controller, js crode and added example public file