Split BAMMtools.R into separate functions in BAMMtools directory