Added some environment variables. Tidied up some libraries.
Fixed bug when creating a new place from a location.