Added more comments, code style cleanup only.