Added functions for restoring geiser repls

Hi,

This commit adds functions for restoring [geiser](http://www.nongnu.org/geiser/) REPLs, also I have fixed some
whitespace issues in the previous commit