added Math API + TESTS
added license for new files