Added extent argument to lopass function. If argument is below 2, it doesnt work. If its a decimal it also doesnt work.
Extent less than 2 is a valid input into lopass
removed unnecessary variable