cleanup

- refactored if statements into the affirmative
- added inline comments
- added guard clauses for create()
0.1.12