Fixed a few issues and added nokogiri as a dependency