added rounding function; streamlined and got rid of magazine vector