angular-history-28 adding docs and fixing memory leak

mem leak fix courtesy of @hyperlisk