Formatting, connect etc. and hincrby

If needed, I can make individual pull requests for each commit.