Added bard.c

This will be the new file for managing driver and all other main stuff.