refactored for generality
refactored for generality
added comments
made part_circle run faster
changed part_circle to take out unnecessary variables