[trainig] added some common functions; added glfw window with green triangle inside
rakefile aligment to new way of adding Pkgs