Finished logic

Also corrected some spacing
Fixed most if not all errors.
crx update to 1.1