Added a whole lot of rendering stuff

Also reduced code for crystal types