Cleaned up old code

NOT DELETED! It’s sitting on my desktop, so if for some reason any one
piece is needed, it can still be easily recovered.