Added logic to the refresh process to factor manually defined target/previous elements

Removed debug code
Updated demo links so that they work locally
Merge pull request #69 from Mathachew/dev

Improved refresh process and updated readme and demo links