added comments and flot template
add flot library
make line graph work
sort graphs from backend