added odd sz error checking
added clip method to clip after averaging, may not be needed now that i thnk about it
removed incorrect comment