Added file selector, Bug fixes in bluetooth connection
and code refactoring