addition of mode class, a few fixes in mask and fix for SSL being
unenabled
Merge pull request #2 from speedismeh/unstable

addition of mode class, a few fixes in mask and fix for SSL being