- auto model height adjustment;
 - rect port generation
 - cleanup
Refactored a little bit. Currently broken!