Added generic list implementation (based off linux kernel)
Various minor formatting changes