Fixed error in view

function parameter doesn't exist, isn't needed
Removed extraneous cruft

Not being used
Reorganized code, moved class to library

The class will probably be more generally needed, so I moved it to a
"general" libary