Add error checking abstraction and checks of some inputs.
Fix typo.
Start separating into (future) pages.