added comments to misc.coffee