init and socket hierarchy
Merge pull request #1 from niklasgerdt/master

socket hierarchy