updated foundation and query, fixed small bugs
updated readme, finished tutorial