WIP code review refactor

moved error handling logic to syntaxtree
only basic extraction of attribs is done at hspblocks parse time