Fixed an amount of parsing bugs; implemented class method `parse`.