added constants
added comments and constants