preference & code style

now saves all user data in the user preference, instead of a json file
in the plugin directory.
replaced all tabs to 4-spaces;