More code cleanup; README updated with building and integration info.