refactored file names. fixed updateInterval calculating bug.
refactored main.coffee
refactored main.coffee more