Improved list functions
Changed hal to use list datastructure and semaphores