cleaned up ICO and added test_fxns.R