Added a period to keep error messages consistent.
Added a stub for main.js
Added a comment to explain if (require.main === module)