Fix some warnings.
The number of samples for each magnetic point can be set by user.
Project update.