Fixed broken optional filename paramter and updated documentation