Fix medium mode bug
Delete unused files