numerous bug fixes and updates to primer design