Add comments and format the code

Add comments to package tachyon.worker and format the code.