Switch from int to byte
Add byte matching method
Add check for start of image
Renaming
Minor code restructuring