PEP8 fixes
Removed ravel peaks option and added a function instead
Added test