Client almost finished

Added metadata-handling