stateinfo will return hash, state_info returns json
Merge pull request #14 from ranjib/fix_reap

stateinfo will return hash, state_info returns json