Fixed Input parses + Add User Specified Domains

Fixed some errors in the input parser causing an error in parsing of
paths.
Add the option to specify the domains of the variables partitioning the
range [-180, + 180] with a given degree.