Basic framework for XP manager. Renamed many files for more standard convention. Fixed some bugs with the leave warnings.