Add gradle files, refactor Camera part