updates
Corrected incorrect type of poiner reference in main function.