Support for finding of function's maximum was added. And few little patches.