Changed class to work off a input string. added a function to break up
string into cmponents. not tested or implemented yet