Fixed Subdivision error and added some spaces and comments.