Initial commit of Bernard, working first version