added source models, system class and a few text parsing functions