Compare two booleans rather than String with && operator.

Error in Eclipse when using the older code
Merge pull request #3 from FaisalAbid/patch-1

Compare two booleans rather than String with && operator.
Make library project