bit more

tidy up and extra polygon functions