Fixed a few bugs with registering components. 

Also changed to support multiple styles.