Implemented some tests for polynomial functions
Added the documentation for polynomial functions