add max option #17
add tests for #18
it seems there are some issues with calculations
remove unnecessary gitignore
do not publish tests files