add wrap function to force objects to ints
pep 8 and deleting extraneous comments/prints