finished first draft of docu in worksheet4.m