Added online/offline mode feature

Added online/offline mode feature and cleared up a few things.