added enums for links and constants, various other changes