Fixed issues in the new Lower Layer.
	- Changed 'type' field to int
	- Changed related portions of the code
	- Added lines to lower layer code to copy over the 'type' field. This was being ignored previously.
This commit just reflects the changes that happened in the bin directory. Can be ignored.