Read file that contains multiple declarations, demo updated, bugs fixed