Made some changes to pointers

msgIn updated to not have * in some cases, as the IDE suggested.