Seperate init into structured file

not ready for merging