reformatted code
Fixed issues with media types
bump to 0.5.168