move internal class so that other program code is together
Allow sam and cram input using io_lib