die statements cleaned up
corrected value during testing
moved roundnear to a module