corrected links, NONE flag and various other changes (nothing important)
thanks to @ousado, extern classes should be used; fixing typo