Added support for multiline matches
Adding more docs + tidying up total and rest
Added a prefile