added the valGreatThan function.
 added isUrl method, added global variables, changed all comments to methods not functions where appropriate.