added class diagram, layer division reverted