Magnitude

- I've updated and generalized magnitude.py. It should work on any data...
- I've added some options (dataless) 
- I've added and modified functions in locations_trigger.py to write/read the header of the location file.