Added documentation and edited README.