Core pr 4

Updated to use material list theme function.
Updated coding style and documentation.

Could be a premature optimization then compared to using the standard method.

You only need this once now.