Add bootstrap support and move code to separated files