added xyz format
fixed bugs found in compilation of patchy spherocylinders