add function in buddy system
fix functions and add comments
fix struct
cosmetic