google analytics script added
analytics corrections
modified API to fix and fix problems with uris
refactoring code