Document code, and add usage to README