added study, cfg, updated main.