Added optins to switch direction of plane, is not needed anymore but might be convenient. Also added the option to get the normals as an argument instead of calculating them within the algorithm