fix astyled and added doxy comments