Added random module for testing
Rafactored msgmod.c and added % operator