added bootstrap
created many of the main functions