added learning rule functions and in process of writing 3rd party authenticator.