Added documentation for all methods in gen-patches