updated pause and seek functions per Renato's suggestions #80