MARS, the MAGIC Analysis and Reconstruction Software