Code cleanup
File download network seperate thread & offline sync