Add Tests
Remove trailing whitespace if rcs not available
Add some doco