Added basic tests and modified README and index.rst