moved source compiler logic to lib/source.js
updated command line source