I have been testing the CIYAM Wallet today and so far all is going pretty well (several txs involving 1 or more inputs and 1 or more outputs have all worked fine) so for those that struggle to understand the cryptic code in Bitcoin itself (I know that I do) then you might find this a little easier to follow:
https://github.com/ciyam/ciyam/blob/master/src/crypto_keys.cpp#L705No guarantees that it is perfect yet (still got a lot of testing to do) but it will certainly help those keen to create their own wallets to see how creating and signing raw transactions works at the *low-level*.