Reedited/added log and err functions. Moved some styles from popup.js to style.css