update a lot

1. finish class Bridge (type conversion & error checking)
2. finish error checking in all the fields