refactored arbor rendercode into different files