Added sanity check for scaling
#72 Added library buttons to checkboxes