moving all logic to lib/main
removing fence.coffee