Fixed bug.
Improved code.
Added test target folder to ignore.
Added tests.