Added binary input and output to the PaperDatabase class, changed import
list to input all java.io