update datacube.py to use new Model/Galaxy/Detector classes in base.py

Also reorganize main script at the bottom and move output to ../plots
directory