hamtest.c was updated with the functions from ham.c, some modifications were made