adding types argument to constructors; removed unnessary lines in protocol/messages.lua