fixed errors in return type automatic detection. fixed small indent bugs and dropdown disconnections.