More explicit importing.
Initial documentation.
Minor additions and hardening.