Fixed coding style, added license info, modified func, fixed .sym

Added license info at beginning of files
Fixed coding style issues
Fixed log.h include statement
Changed buxtond_set_group to not use errno anymore