added warning options
fixed signdness comparisions
Merge pull request #4 from merces/master

Fix signedness comparision and add compiling time warnings