transforming lights-functions into fully-fledged Coffeescript OO format
rebuild and docs