Initial version of scala port
Add some comments missed during conversion.
A few more minor cleanups.
Fix for JDK7
Some cleanup
use Array.ofDim
Merge pull request #8 from rorygraves/master

Scala port of AIFH