Added documentation and expanded readme.