Core pr 4

Updated coding style and documentation.
Removed provider dependent code.