Fixed positioning bugs and added some new options

Fixed positioning bugs and added use of data-rules="optional" to ignore
inputs in the select range.

Also added the new option errorClass to specify your own input styling.