Closed #1 and #2. Renamed the module to hg. Changed rev to revision.