Moving commands to Ghc monad

Pull request for #122