added default value for eps
added summary for the function
added summary for the function