Core pr 4

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

Even though it is not the case now there may be other checkboxes, action buttons etc. on the same page as the loan lists going forward where this script is not applicable.