Main check

Added a __main__ check at the end. printing a message if the file is run
as a standalone program