Refactoring and JavaDoc.
Added isSynchronizationActive method.
Added isConnected method.
Added close button.
Added button to open the P2P activity in the main activity.