Allow to specify --period 0 and fix aligment

Added a handy feature and fixed the output.