Added extract_name_from_data and sanitize_data methods to schedule class.

Some minor  fixes to rest in other parts of code.