Rewrite of some core methods, added instagram php sdk