Moved all code for entrys to a own file.
Refactored code layout.