Moved to a home-made LineIterator -- replaces the commons-io LineIterator

Could not get the common-io working — unable to figure the issues since
it throws exceptions without an explanation message.
Removed unused imports
Minor reorganisation of the element order
Use java lists instead of arrays as the bridge type to interface with Scala libraries