opensourcing project

added documentation and tests.
fixed bug.