fix several bugs in and cleanup code from original implementation

I really needed this feature implemented.  Thank you for your implementation.

I have a commit which fixes some bugs when the project name contains a space and when no splash files exist and also simplifies some of the code.