Updates based on PR

-Remove uneeded whitespace
-Test indexes based on the return from list indexes
-Update clang-format to disallow functions on a single line