added init() and shutdown()
Merge with master
Merge pull request #72 from cgcostume/init_and_shutdown

Added init() and shutdown()