added variable output, fixed range retrieval
added check for existence of year metadata
fixed multiply used id
added list of chapter tags to accomodate different books