Added documentation, improved README file.