Changed rules, added various functionality. 0 before a bracket now stops it from being an endpoint