Removing nils from buffer list, and using list instead of alist.

I couldn't find a function called alist so replaced it with list in emacs 24.4.1 and had nil values in my buffer-list which caused errors.

I only cleaned up a couple of issues as I found them.