cleaned up broken fibonacci code and added another detector
rearranging mathmatics code