Moved space skipping logic into separate method.
Added reading of block compound terms.
Added reading of other compound terms