Add test
Improve style
Divide egm.coffee
Merge branch 'feature/separate-renderer' into develop