Changed excepts, optimized comma stripping, less usage of global states in functions, changed sort-method