Cube now remembers input filename
Some small const changes
Better error messages
Comment pass