Codes used for master's dissertation studying "Bacterial Chemotaxis of Bacillus subtilis under Antibiotic Challenge".