added server-side formatting (caps, punc). refactored generateBlock and introduced a simple proto mechanism