Some changes after code review. Copy-constructor added.
Added tests for toList method. Some refactoring done.