Refatored sersic and tested everything but the function values