removed editor

show code directly for quick understanding of what is happening. Also some code cleanups

![screen shot 2013-07-09 at 15 13 40](https://f.cloud.github.com/assets/39992/768185/cbe9253c-e899-11e2-921a-6576d2379f7f.png)