Fixes comparison errors
Fixes method getstate errors
Improves paren storing, adds is function