refactored codeEditor functions to static functions in Utils class, added arrangeHorizontal/Vertical, added smart default values for all arrangeOn... functions