Updated class to match updated bootstrap
Added constructor and fixed logic
Testing reference ID validation and generation