Rewrite of HUDFlowLayout class - bug fixes and secondary axis justifications included