Add sanity checks to fps() and fixed typo in documentation