Added compass support for easier box handling.
Made the layout system functional using the 1999 box specification (the only one available on mobile devices).