added description of clear() method
fixed scoping bug preventing multiple instances from working on same page