branched of structure definitions to seperate file

Signed-off-by: Alexander Skjolden <alex@plastboks.net>