Made refresh interval configurable.

This solves #1.

I hope to hear back from you, if this is what you wanted :)