Moved automatic running after class definitions

fixes #28