Add gem dependencies

In order to work properly when installing the gem from a repository the
dependencies need to be specified in the gemspec file. Also fixed some
small issues.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>