Added usage details of library mode. Modifications might be necessary.