Incorporated some changes for case-class like behavior and proper ordering

Signed-off-by: George K. Thiruvathukal <gkt@cs.luc.edu>