added "generic" performance code for project. implemented XString functions that dont need new to work