2dim graining optim before testing
added files