Separed things into methods

Also added a downloader to download stock quotes automatically