updated with comments and variables for localhost port and tab fixes
comments added
added
updated/added unit tests