Added automatic timeline resize to show all elements when model changes, refactored identation