fixed small data flaw; added class types to data.js and added coloring based on types