added dynamic symbol width and comments