Removed netbeans folder
Added some tests, documentation and refactorings.