Added logic for appending elbows
Updated documentation