Code cleanup:
- Move main header to corefungi.hpp.
- Add cfg internal namespace.
- Add few comments.
- Add a reference wrapper templated class.