Added javadoc.
Added a bit of documentation.
Added reference to OEIS.