Added power derivatives (and basic log support)
Added slightly better log support