Cleanup core module API

* Drop some low level API
* Remove outdated overloads
* Utilize Input/OutputArray
Update documentation