code checkup, small code and comment fixes
fixed comment, fmt.version is now string pointer
reimplemented formater