Added levelCid and debug

levelCidEnabled allows user to configure if Cid sohuld be autoleveled or not
debug allows user to configure if debug messages are printed to browser console