Fix ground rotation

Rotation is in radians not degrees
Refactor pipe functions into PipeMaker
Fix pipe creation in intervals