Layout bugfix

All elements would end up on one line
Make ports configurable