formatting fixes
correctly use constant value for annotations with constant details
remove overly verbose root namespace references
fix issue where parse_url may return false and not an array
remove unnecessary html exception handling logic
add an extra isset() to get rid of an error