started moving functionality out of the command type info sepperate format functions.