Specral Theory Of Canonical Systems