try to fix Layers shape
engine and api cleanup
solver cleanup
minor
cleanup inregion
cleanup regions
cleanup gui rendering and fix bleeding components
fix gui render size typo
cleanup solver etc.