The last missing pieces

Finished RC and UBA sections
Add raw read/write mode
Add UBA test mode
Add version number for output via getversion