Initial commit with code.
Added documentation.