first working version
added comments + 'amount of msgs' variable
moved the yourAddress fix a bit more down