All parametrized layout

- fixed text/layout bugs
- calculating y spacing dynamically too
NEXT STEPS: work on GUI