Cleanup.

Fix typos on #20 and #22, add function signatures.