Adding the sitemap files.
Changed the file name
Hook it in with the functions.php file
Filter in MAKE custom post types.
Some better variable handling.