added block weight matrix construction + demo