Update classes.php

Resource class shortened. Only necessary elements kept. All properties can now be accessed via the public function get_details()