Added deleteMessage(not implemented). Now renders a deletebutton aswell. Restructured code a little bit and added some comments aswell