added code for displaying constants, API doc update