layout layer update

extended layout feature
created simple template
updated some comments