I've come to realize that creating a library to create povray files is not a good use of time
1. povray is very complex
2. it has built in scripting functionality that, while not as nice as what I'm used to, will serve the purpose
3. animation relies on a "clock" variable, that only exists in the povray file being compiled
thus, more and more I was storing all properties, including calculations, as strings in my library, so it started getting silly.
Here's a hand-coded povray file animation