Added dependencies to .cabal file and fixed an offset bug