updated comments some comments and log messages