added comments, changed some method names and changed scale's unit.
added Gruntfile and tests.