Added link to readthedocs, fixed few bugs. Fixes #7.