added expand flag to other functions that call mergeTransformedPage, added @param comments