remove dependency on sys; add copyright

Remove dependency on sys and add copyright