Throw exceptions when a block cannot be imported for whatever reason.
Move every tag to one place.
Refactor tags.
Throw an exception when extends tag is not in the main scope.
Little cosmetics.
Readability changes in tags.