has_dec() added.
Logic clean up.
Chain rule implemented and further power function implementation.