Added example method to LocalServer and small fixes