Added preprocessing method (closes unclosed things, and removes comments, which start with `_')