Cleaned up and finished the dot parser (with the exception of compound nodes to be added in the future)