collapsed Object into Mesh

also moved checkError() into its own file.
also added normals.