Packages refactored.
Added JavaDocs. Added tests for Space Replace task.