Added support for retrieving history

@airosa 
Closes #12