adds two alert messages
changes console message
adds comments and changes parameters