Refactored some layout internal functions
Updated layout documentaiton for methods and properties
Recompiled JS