Set routes variable to object, changed some parameter checking and set variables that needed to be set
Merge pull request #1 from dkleehammer/issue1

Set routes variable to object, changed some parameter checking and set v...