fix class name type
various fixes; self != Java static this
further fixes; remove unused imports