Removed what I belive are redundant API elements.
Made the code extend the sales orders in a simpler fashion.