Added more comments and added cube saving functionality