fixed small bug in msg sending. Added warnings for unfinished code