big changes to fix non square patch
SHould work
added kind of test unit
test on function + doc