Implement getinfo command

Closes #63