Moved most of cores.rb into json.rb, cores.rb now reads json data #19