Increased space for message length (was only one signed byte, now one
int32),
fixed minor bugs