Refactored parser to use new BlockLevel class. Cleaned up errors.