Fix of a few tweaks concerning rennaming and fetching, started implementation of history