fixed spacing,
added __() to text elements
added inline documentation
updated check for upgrade logic