Refactoring, move all visualization functions into an own file
Refactoring