Looks like you just have to orient the joints... their are a lot of mel scripts to help you out wiht it... Just do a search for joint orientation mel scripts on google or something...
I am enough of an artist to draw freely upon my imagination, knowledge is limited, imagination encircles the world. (Albert Einstein)
https://www.artstation.com/kurtb