improvement find max generic function + fixing README