Added mkgeo.js and cleaned the code with some comments