Fixes in class declaration

Fix type in syntax block.

Add that class name cannot be 'self', 'parent' or 'static'.