Feature/mblock poisson

New multi-block app and fixes to the code generator