update readme and create printer index function