main: read items and initial state from files
input: simple examples