Add parsing of version and user data
Add with_metadata karg and use namedtuple
Optimize with_metadata if statement