changed BASEPATH check syntax for consistency reasons.
corrected code comment.