added c parameter to add constant before multiplying by a
added description for the parameter c