code formatting
updated URL creation
fixed typo