added some semi-working get table functionality. A base for improvement.