added some comments for clarity
crypto_rnd is now a class
server is now fetching notes and returning a XML