style: update to modern style guide
style: convert to more modern style
Remove two unneeded trys
share code more aggressively and move towards better parse errors
Make error messages a bit nicer