Testing

urgent bug fix in constructimgcubealignment
added tic toc to a few functions