* Updates for issue #684
Rule entity_019 was inserting an extra space when not needed.
1) Updated test to expose the issue
2) Updated code to fix the issue
* Updates for issue #684
Refactoring to improve readability.
* Updates for issue #684
Fixing function get_number_of_carriage_returns_before_token to stop after finding stop token.
* Updates for issue #684
Found corner case for rule instantiation_033 where the component keyword was misplaced when adding it.
1) Updated tests
2) Updated rule to fix issue
* Updates for issue #684
Updating rules entity_015, package_007 and context_021 to properly handle spaces.
1) Updated test for entity_015
2) Updated base rule insert_token_right_of_token_if_it_does_not_exist_before_token
* Updates for issue #684
Updating rule package_body_002 to handle spaces before the semicolon.
1) Updated tests
2) Updated base rule insert_tokens_right_of_token_if_it_does_not_exist_before_token
* Updates for issue #684
Updated rules architecture_010 and component_021 to properly handle spaces.
1) Updated tests
2) Changed base rule
* Updates for issue #684
Updating rules block_002 and process_012 to properly handle spaces.
1) Updated tests
2) Updated base rule insert_token_right_of_possible_tokens_if_it_does_not_exist_before_token
* Updates for issue #684
Fixing minor issues for Codacy.