Fix converting from $
Finished comments
Added function for sorting latest array by cheapest