Fix author defects

Made improvements on author inputs based on comments from @vedopar. Trimmed all paper fields before they are entered in DB, and improved interpretation of author names (auto-fills middle name).