implemented layer methods. added style