Librarian fixes, script fixes, all general

fixed the librarian source so that when repackaged in ANT will be able
to handle SVCP format again.  fixed some general bugs in the scripts