change structure of mediabed + added comments