Fix research form and add study type to csv