Commit before rebase master
Add template interface for saving and loading point_xyz_t and point_xyzi_t
fix io fuction