add usage doc to main.js