Minimize dependencies, clean warnings

Also made the source loadable in ghci