Move structs to their own file

Putting structures in their own file to increase readability

Suggested-By: @aarondl