Refactor bootstrap process, and extract css tyles from demo