Added new function to parse delimiters and pick correct ones. Added many ifs and regexps... need to reduce them. Some more tests added. TODO modified.