function cleanup <input>
Merge pull request #36 from Magicalex/improve-research

cleanup  function <input>