Added boundary linear assembly and some other fixes.