cleaned up code
displayed data with padding and minor code improvements