COMP: converting to use BRAINSCommonLib functions

This patch simplifies this program, and trims out unnecessary header includes.