Added Hit parameter encoding.
Added tests for Hit.
Updated gyp file.