Fixed typesdb_path to be typesdb array of potential files.
Changed a few variable names per advice from @jordansissel