fixed bug for argument passing and added function for attribute display and other refinements.