refactor createPoint to be a general method used for creating all points with their additional data