added optional eps for 3d calculation
added more tests