rem tabs
various indentation fixes
semantics