Changed tilt angle boundaries to +-atan(2)

Also allowed floating point values for all inputs apart from number of
sides and changed tilt height adding to use tan instead of sin