Add rule class and load() function

Tests for load() function

Also added get_title() function for tests