fixed bin section of package.json
work in progress: refactored generate to match the original ideas (do not code in trains)