started adding detailed comments

started adding detailed comments