fixed bugs in helloworld example, refactored rocket example