Updated code to create basis functions for fmri data analysis