Fixed all code review comments, also added a few extra checks to the transformcomponent's update.