fix element regex
add modifier support
add parentmodifier support
move parse element function
strip space before comment
replace tap-spec with tap-dot
refactor test cases to files