Finished LAPIC code except for controller, should work except untested