Added basic window.
Added clipboard codes.
Remove unneeded codes.
Added decode method.