Third commit

Minor changes and introduced online learning