RegAPI

* Cleaned out dead code
* Put comments what still needs to be done