Fixed up errors, added comments, and license
Added token module