Change @link tags to @code
Add javadocs for server sync code