remove unnesscary call to memset.
remove some idiotic logic from select
remove old comments
Tiny fix