Add configurable block IDs.

Also adds last javadocs.