added finalizeLogSegment function to FJM
added few functions to FJM
removed const member variables of mutable objects