Added documentation.
Merge pull request #109 from DavidMansolino/doc

Added documentation.
Fixed warning about unused variable on Windows