-Edited function “send” arguments order
-Renamed “newMessage” variable to avoid confusion
-Edited comments