added error message, latex document

+ added error message when upper > lower (as in spec sheet)
+ added the latex documents with some slight changes than Ryan's
original