adding uri_max_length and some code cleanup
Merge pull request #1 from vsacheti/master

adding uri_max_length and some code cleanup