Added layout.h, some new functions for initialization parts of window