small reformatting
fixed a bug in the reference timepoint registration
added the reference timepoint registration to the plugin