Fix register code to use adapter class
Fix post example to pass name of file