fixing break when changing state or deleting when not existing; updated to VERSION 0.0.2
cleanup