Cleaned-up ViewerGL constructor. Also added files for the upcoming Curve editor