Cleaned up the code-- Converted tabs to spaces, reduced vertial spacing, updated bracket style.
Removed unused file
Cleaned up join clause to work with post types that do not have a taxonomy, updated more comments